package com.dev.security.tools.beans;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 数据字典
 * @author 飘渺青衣
 * @see
 */
@Entity
@Table(name = "t_cds_dictionary")
public class Dictionary {

	@EmbeddedId
	private DictionaryId id;
	
	private String label;
	
	/**
	 * 序号
	 */
	private int sort;

	public DictionaryId getId() {
		return id;
	}

	public void setId(DictionaryId id) {
		this.id = id;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}
	
	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	public String getValue() {
		return this.id.getValue();
	}
}
